import React , { Component } from 'react';

class View extends Component {
    constructor(props){
        super(props);
        this.state = {
            bTrue:'edu show'
        }
    }
    edit(e){
        this.setState({
            bTrue:'edu edit'
        })
    }
    save(e){
        //保存
        this.setState({
            bTrue:'edu show2'
        })
    }
    render(){
        return(
            <div className={this.state.bTrue}>
                <input type="button" onClick={(e)=>this.edit(e)} value="添加"/>
                <h3>教育培训</h3>
            	<div className="jiahao" onClick={(e)=>this.edit(e)}>这是加号</div>
            	<div className="xianshi">这是显示<input type="button" onClick={(e)=>this.edit(e)} value="修改"/></div>
            	<div className="biaodan">这是表单
                <input type="button" onClick={(e)=>this.save(e)} value="保存"/></div>
            </div>
        )
    }
}
export default View;
